package com.lifa.service.impl;

import com.lifa.dao.KucunDao;
import com.lifa.entity.Kucun;
import com.lifa.service.KucunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class KucunServiceImpl implements KucunService{
    @Autowired
    private KucunDao kucunDao;

    public List<Kucun> Kucun1() {
        return kucunDao.kucun();
    }

    @Override
    public List<Kucun> kucuenfenye1(String Shangpin_Name, int offset, int limit) {
        return kucunDao.kucuenfenye(Shangpin_Name,offset,limit);
    }

    @Override
    public long kucuenzongtiaoshu(String Shangpin_Name) {
        return kucunDao.kucuenzongtiaoshu(Shangpin_Name);
    }
}